package com.wuliu.system.service;


import com.wuliu.common.core.domain.entity.SysAppletUser;

/**
 * @author realue
 * @version 1.0
 * @date 2022-10-17 17:01
 */

public interface AppTokenService {

    /**
     * 生成token
     *
     * @param sysUsers
     * @return
     * @throws Exception
     */
    String generateToken(SysAppletUser sysUsers);

    /**
     * 校验验证码
     *
     * @param userNo
     * @return
     * @throws Exception
     */
    Boolean checkVerificationCode(String userNo, String code);

    /**
     * 验证证码存入redis
     *
     * @param userNo
     * @param code
     * @throws Exception
     */
    void saveVerificationCode(String userNo, String code);
}
